export {}

interface Point {
  x: number
  y: number
}
interface Point2 {
  x: number
  y: number
}

let p2: Point2 = {
  x: 9,
  y: 0,
}
//类型兼容
let p1: Point = p2
